package com.mazaiting.socket.server.entity;

import java.nio.charset.StandardCharsets;

/**
 * 服务配置
 * @author mazaiting
 * @date 2021年11月8日
 */
public class ServerConfig {
    /**
     * 监听端口
     */
    private Integer port;

    /**
     * 描述信息
     */
    private String description;

    /**
     * 编码
     */
    private String encoding = StandardCharsets.UTF_8.name();

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    @Override
    public String toString() {
        return "ServerConfig{" +
                "port=" + port +
                ", description='" + description + '\'' +
                ", encoding='" + encoding + '\'' +
                '}';
    }
}
